package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_kno_wle database table.
 * 
 */
@Entity
@Table(name="per_kno_wle")
@NamedQuery(name="PerKnoWle.findAll", query="SELECT p FROM PerKnoWle p")
public class PerKnoWle implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int wleid;

	private int wlestat;

	private String wletext;

	//bi-directional many-to-one association to PerKnoWds
	@OneToMany(mappedBy="perKnoWle")
	private List<PerKnoWds> perKnoWds;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp1;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="PER_EMPID")
	private PerPmsEmp perPmsEmp2;

	public PerKnoWle() {
	}

	public int getWleid() {
		return this.wleid;
	}

	public void setWleid(int wleid) {
		this.wleid = wleid;
	}

	public int getWlestat() {
		return this.wlestat;
	}

	public void setWlestat(int wlestat) {
		this.wlestat = wlestat;
	}

	public String getWletext() {
		return this.wletext;
	}

	public void setWletext(String wletext) {
		this.wletext = wletext;
	}

	public List<PerKnoWds> getPerKnoWds() {
		return this.perKnoWds;
	}

	public void setPerKnoWds(List<PerKnoWds> perKnoWds) {
		this.perKnoWds = perKnoWds;
	}

	public PerKnoWds addPerKnoWd(PerKnoWds perKnoWd) {
		getPerKnoWds().add(perKnoWd);
		perKnoWd.setPerKnoWle(this);

		return perKnoWd;
	}

	public PerKnoWds removePerKnoWd(PerKnoWds perKnoWd) {
		getPerKnoWds().remove(perKnoWd);
		perKnoWd.setPerKnoWle(null);

		return perKnoWd;
	}

	public PerPmsEmp getPerPmsEmp1() {
		return this.perPmsEmp1;
	}

	public void setPerPmsEmp1(PerPmsEmp perPmsEmp1) {
		this.perPmsEmp1 = perPmsEmp1;
	}

	public PerPmsEmp getPerPmsEmp2() {
		return this.perPmsEmp2;
	}

	public void setPerPmsEmp2(PerPmsEmp perPmsEmp2) {
		this.perPmsEmp2 = perPmsEmp2;
	}

}